package hc.bre.rest.admin

import hc.bre.cmn.ListOption

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
class BreRole extends ListOption{
	Set<String> perms = [];

	@Override
	public BreRole load(Map map) {
		super.load(map);
		 
	    List<String> lst =  map['perms'] as List;
		lst?.each { 
			perms.add(it);
		}
		
		return this;
	}
}
